<template>
  <div class="app-container">
    <el-container>
      <el-header height="60px">
        <div class="header-container">
          <h1>事件编排管理系统</h1>
        </div>
      </el-header>
      <el-container>
        <el-aside width="200px">
          <el-menu
            router
            default-active="/"
            class="sidebar-menu"
          >
            <el-menu-item index="/">
              <el-icon><el-icon-menu /></el-icon>
              <span>首页</span>
            </el-menu-item>
            <el-menu-item index="/events">
              <el-icon><el-icon-document /></el-icon>
              <span>事件列表</span>
            </el-menu-item>
            <el-menu-item index="/categories">
              <el-icon><el-icon-folder /></el-icon>
              <span>事件分类</span>
            </el-menu-item>
            <el-menu-item index="/custom-nodes">
              <el-icon><el-icon-cpu /></el-icon>
              <span>自定义节点</span>
            </el-menu-item>
            <el-menu-item index="/variables">
              <el-icon><el-icon-data-analysis /></el-icon>
              <span>变量管理</span>
            </el-menu-item>
            <el-menu-item index="/logs">
              <el-icon><el-icon-time /></el-icon>
              <span>运行日志</span>
            </el-menu-item>
            <el-divider />
            <el-menu-item index="/system-settings">
              <el-icon><el-icon-setting /></el-icon>
              <span>系统设置</span>
            </el-menu-item>
          </el-menu>
        </el-aside>
        <el-main>
          <router-view />
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script setup>
import { ElIcon } from 'element-plus'
import { 
  Menu as ElIconMenu, 
  Document as ElIconDocument, 
  Folder as ElIconFolder, 
  Timer as ElIconTime,
  DataAnalysis as ElIconDataAnalysis,
  Cpu as ElIconCpu,
  Setting as ElIconSetting
} from '@element-plus/icons-vue'
</script>

<style scoped>
.app-container {
  height: 100%;
}

.header-container {
  display: flex;
  align-items: center;
  height: 100%;
  color: #fff;
  padding: 0 20px;
}

.el-header {
  background-color: #409eff;
  padding: 0;
}

.el-aside {
  background-color: #f5f7fa;
  border-right: 1px solid #e6e6e6;
}

.sidebar-menu {
  height: 100%;
  border-right: none;
}
</style> 